package com.my.service.iml;

import com.my.service.MenuService;
import com.my.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

/**
 * @author mars
 * @date 2025-03-03 10:04
 */
@Service(value = "userService")
public class UserServiceImpl implements UserService {
    @Autowired
    @Lazy
    private MenuService menuService;

//    public void setMenuService(MenuService menuService) {
//        this.menuService = menuService;
//    }
//
//    public UserServiceImpl(MenuService menuService) {
//        this.menuService = menuService;
//    }

    @Override
    public String getUserName() {
        return "Tom";
    }
}
